#include <graph.h>

// 边表
typedef struct ArcNode{
    int adjvex;
    struct ArcNode *next;
} ArcNode;

// 顶点表
typedef struct VNode {
    VertexType data;
    ArcNode *first;
}VNode, AdjList[MaxVertexNum];

// 邻接表
typedef struct{
    AdjList vertices;
    int vexnum, arcnum;
}ALGraph;